#include "label.h"
#include <QDebug>
#include <QMouseEvent>
Label::Label(QWidget* parent) : QLabel(parent)
{

}

void Label::mousePressEvent(QMouseEvent *event)
{
//    qDebug() << "press , " << event->x() << " , " << event->y();
//    qDebug() << "press 全局位置 : " << event->globalX() << "," << event->globalY();
    qDebug() << "Press";
}

void Label::mouseReleaseEvent(QMouseEvent *event)
{
    (void)event;
    qDebug() << "Release";
}

void Label::mouseDoubleClickEvent(QMouseEvent *event)
{
//    qDebug() << "double click " << event->x() << " , " << event->y();
    qDebug() << "DoubleClick";
}
